package com.cyy.common.pojo.resp;

import com.cyy.common.pojo.dto.UserBasicDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
@Schema(description = "文章详情信息")
public class ArticleDetailsResp {

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章简介")
    private String summary;

    @Schema(description = "分类id")
    private Integer categoryId;

    @Schema(description = "分类名称")
    private String categoryName;

    @Schema(description = "标签列表")
    private List<Integer> tags;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "阅读验证方式")
    private Integer readVerifyType;

    @Schema(description = "是否阅读验证通过")
    private Boolean isReadVerifyPass = false;

    @Schema(description = "是否顶置(0否，1是)")
    private Integer isTop;

    @Schema(description = "是否原创 (0原创，1转载)")
    private Integer isOriginal;

    @Schema(description = "转载地址")
    private String reproductionUrl;

    @Schema(description = "浏览量")
    private Integer viewCount = 0;

    @Schema(description = "点赞数")
    private Integer likeCount = 0;

    @Schema(description = "是否点赞(0未点赞，1已点赞)")
    private Boolean isLike = false;

    @Schema(description = "收藏数")
    private Integer collectCount;

    @Schema(description = "是否收藏")
    private Boolean isCollect = false;

    @Schema(description = "是否关注")
    private Boolean isFollowed = false;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "用户详情")
    private UserBasicDto userBasic;
}
